﻿using System.Diagnostics.CodeAnalysis;

namespace Admin.CommonLib.Models.Permission
{
    public class PermissionTreeResponseDto
    {
        public Guid Key { get; set; }

        [NotNull]
        public string? Code { get; set; }

        public string? Name { get; set; }

        public string? Icon { get; set; }

        public bool Selected { get; set; }

        public string? Url { get; set; }

        public List<PermissionTreeResponseDto>? Children { get; set; } = new();
    }
}